<template>
	<view class="mian">
		<view class="list">
			<u-cell-group>
				<u-cell title="门店信息修改" :isLink="true" @click="goAuthStore()"></u-cell>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	import {
		getStores
	} from "@/api/business"
	import {
		mapGetters
	} from "vuex";
	export default {
		components: {},
		props: {},
		data: function() {
			return {};
		},
		computed: mapGetters(["userInfo"]),
		methods: {
			//开通门店
			goAuthStore() {
				getStores().then(res => {
					console.log(res)
					// 审核中
					if (res.data.state == '1') {
						uni.showToast({
							title: '门店审核中,请耐心等待~',
							icon: "none",
							duration: 2000
						});
					}
					// 审核不通过
					if (res.data.state == '3' || res.data.state == '2') {
						this.$yrouter.push({
							path: '/userPack/pages/user/AuthStore/index',
							query: {
								type: 1
							}
						})
					}
				})
			
			}
		}
	};
</script>

<style scoped lang="less">
</style>